import {
	http
} from '@/api/index.js'

export function loginHttp(data) {
	return http({
		url: '/login',
		data: data,
		method: 'post'
	})
};

export function register(data) {
	return http({
		url: '/register',
		data: data,
		method: 'post'
	})
};

export function logout(data) {
	return http({
		url: '/logout',
		data: data,
		method: 'post'
	})
};

export function changeUserInfo(data) {
	return http({
		url: '/change/userInfo',
		data: data,
		method: 'post'
	})
}
